<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="beans.CajaBean" %>
<%@page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Cierre de Caja</title>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#E0ECFF") style="height: 257px; ">

	<form name="aperturasform" action="./ControladorCaja" method="get">
		<center><legend><b><big>Cerrar Caja</big></b></legend></center>
		<%			
			CajaBean caja=(CajaBean)request.getSession().getAttribute("caja"); 
		%>
		<br>
		<table style="height: 189px; width: 474px;" cellspacing="3" cellpadding="3" border="1" width="500">
	
		<tr>
			<td colspan="4" style="width: 129px; "><b><center>CAJA <%=caja.getId()%></center></b></td>
		</tr>
		<tr style="width: 263px; ">
		    <td style="width: 145px; "><b>Medio de Pago </b></td>
			<td style="width: 65px; "><b>Importe ($)</b></td>
		</tr>	
		
		<tr>
		 		<td>EFECTIVO </td>
				<td><%=caja.getEfectivo()%> </td>	
		</tr>
		<tr>
		 		<td>CREDITO </td>
				<td><%=caja.getTarjetaCredito()%> </td>	
		</tr>
		<tr>
		 		<td>DEBITO </td>
				<td><%=caja.getTarjetaDebito()%> </td>	
		</tr>
				<tr>
		 		<td>CUPONES </td>
				<td><%=caja.getCupones()%> </td>	
		</tr>
	</table><br>
	<% float totalcaja=caja.getCupones()+caja.getTarjetaDebito()+caja.getTarjetaCredito()+caja.getEfectivo();
	 %>
	<label>Total de CAJA  $:</label><label><%= totalcaja%></label>
	<br><br> <input	type="submit" value="CERRAR CAJA">  
</form>

</body>
</html>